package com.blog.cmrpersonalblog.dto.comment.responst;

import lombok.Data;

/**
 * 评论统计响应DTO
 */
@Data
public class CommentStatsResponse {

    /**
     * 评论ID
     */
    private Long commentId;

    /**
     * 点赞数
     */
    private Integer likeCount;

    /**
     * 回复数
     */
    private Integer replyCount;

    /**
     * 是否被当前用户点赞
     */
    private Boolean isLiked;

    /**
     * 构造方法
     */
    public CommentStatsResponse() {}

    public CommentStatsResponse(Long commentId, Integer likeCount, Integer replyCount, Boolean isLiked) {
        this.commentId = commentId;
        this.likeCount = likeCount;
        this.replyCount = replyCount;
        this.isLiked = isLiked;
    }
}
